//加载模块
const express = require('express')

const { response } = require('express')
//创建一个app服务
let app = express()

//端口服务
app.listen(3006, () => {
    console.log('启动了');
})
//-----------------------接口--------------------------------------------
// 配置：接收查询字符串格式的请求体
app.use(express.urlencoded({ extended: true }));

//导入login路由
let login = require('./routerss/login.js')
//注册中间件
app.use('/api', login)